package behavioralPattern.visitor.example01.product;

import lombok.Data;

import java.time.LocalDate;

/**
 * 数据结构类
 *  -- 规定数据基本结构
 */
@Data
public abstract class Product {

    private String name;

    private LocalDate date; // 生产日期

    private double price;

    public Product(String name, LocalDate date, double price) {
        this.name = name;
        this.date = date;
        this.price = price;
    }
}
